#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import worddictionary_blueprint
from api_1_0.wordDictionaryResource.wordDictionaryResource import WordDictionaryResource
from api_1_0.wordDictionaryResource.wordDictionaryOtherResource import WordDictionaryOtherResource

api = Api(worddictionary_blueprint)

api.add_resource(WordDictionaryResource, '/wordDictionary/<word_dictionary_id>', '/wordDictionary', endpoint='WordDictionary')


@worddictionary_blueprint.route('/worddictionary/update/<word_dictionary_id>', methods=['PUT'], endpoint='WordDictionaryUpdate')
def update(word_dictionary_id):
    return WordDictionaryOtherResource.sensitive_update(word_dictionary_id)
